//
//  BZ_GHS_PermissionViewController.m
//  penzer
//
//  Created by caiyc on 2018/11/16.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "BZ_GHS_PermissionViewController.h"
#import "BZ_GHS_YGCell.h"
#import "BZ_GHS_EditPerssionViewController.h"
@interface BZ_GHS_PermissionViewController ()<UITableViewDataSource,UITableViewDelegate>
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end

@implementation BZ_GHS_PermissionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"权限管理";
    [self SetupTabView];
    // Do any additional setup after loading the view from its nib.
}


-(void)SetupTabView
{
    [self.tableView registerNib:[UINib nibWithNibName:NSStringFromClass([BZ_GHS_YGCell class]) bundle:nil]  forCellReuseIdentifier:NSStringFromClass([BZ_GHS_YGCell class])];
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    self.tableView.estimatedRowHeight = 200;
    self.tableView.rowHeight = UITableViewAutomaticDimension;
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
}


-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 3;
}


-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    BZ_GHS_YGCell *cell =[tableView dequeueReusableCellWithIdentifier:NSStringFromClass([BZ_GHS_YGCell class])];
     return cell;
}


-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    BZ_GHS_EditPerssionViewController *vc = [[BZ_GHS_EditPerssionViewController alloc]init];
    [self.navigationController pushViewController:vc animated:NO];
}

@end
